package com.strato.mvc.i18n.v1_0_0.resolvers;

import java.util.Locale;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.strato.mvc.i18n.v1_0_0.LocaleResolver;

public class DefaultResolver implements LocaleResolver{

	private static DefaultResolver instance=new DefaultResolver();
	
	public static DefaultResolver getInstance() {
		return instance;
	}

	@Override
	public Locale load(HttpServletRequest request, HttpServletResponse response) {
		return request.getLocale();
	}

	@Override
	public void save(Locale locale, HttpServletRequest request, HttpServletResponse response) {
	}

}
